import { URLRequestPrefix } from '../config';
import { get, post } from '../http';

export const analyze = async () => await post(`${URLRequestPrefix.Main}/release/analyze`);

export type GetReleaseListReq = {
  date?: string;
  filterST?: boolean;
  filterBJ?: boolean;
  filterSM?: boolean;
  filterMonitored?: boolean;
  pageNo: number;
  pageSize: number;
};
export const getReleaseList = async (data: GetReleaseListReq) =>
  await post(`${URLRequestPrefix.Main}/release/list`, data);

export const getRedList = async () => await get(`${URLRequestPrefix.Main}/release/red`);
